ActionController::Routing::Routes.draw do |map|

  map.home '', :controller => 'forums'

  map.unanswered '/unanswered', :controller => 'topics', :action => 'unanswered'
  map.unread '/unread', :controller => 'topics', :action => 'unread'
  map.unread '/subscribed', :controller => 'topics', :action => 'subscriptions'

  map.resource  :session
  map.resources :topics, :posts, :users, :moderatorships, :reports, :subscriptions
  map.resources :forums, :collection => { :sortable => :get, :sort => :post }
  
  map.connect ':controller/:action/:id'

  # 404 route
  map.lost  '*url',
            :controller => 'forums',
            :action => 'missing' # since this method is *actually* missing it will execute rescue_action
  
end
